package com.help10000.rms.common

import android.content.Context
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.interfaces.OnConfirmListener

class DialogUtil {
    companion object {

        fun show(context: Context, content: String) {
            XPopup.Builder(context)
                .asConfirm(
                    null, content, null, "确定", {

                    }, null, true
                ).show()
        }

        fun show(
            context: Context,
            title: String,
            content: String,
            listener: OnConfirmListener
        ) {
            XPopup.Builder(context)
                .asConfirm(
                    title, content, null, "确定", listener, null, true
                ).show()
        }
    }
}